home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / ISSUE02 / RPC10C / RPC10C.ZIP / RPDEMO.ZIP / RPTEST.PAS < prev   
Encoding:
Pascal/Delphi Source File  |  1995-04-14  |  822 b   |  48 lines

  1. unit Rptest;
  2.  
  3. interface
  4.  
  5. uses
  6.   RPForm,
  7.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  8.   Forms, Dialogs, StdCtrls, Buttons;
  9.  
  10. type
  11.   TMainForm = class(TForm)
  12.     Label1: TLabel;
  13.     Label2: TLabel;
  14.     Label3: TLabel;
  15.     BitBtn1: TBitBtn;
  16.     BitBtn2: TBitBtn;
  17.     procedure BitBtn1Click(Sender: TObject);
  18.     procedure BitBtn2Click(Sender: TObject);
  19.   private
  20.     { Private declarations }
  21.   public
  22.     { Public declarations }
  23.   end;
  24.  
  25. var
  26.   MainForm: TMainForm;
  27.  
  28. implementation
  29.  
  30. {$R *.DFM}
  31.  
  32. procedure TMainForm.BitBtn1Click(Sender: TObject);
  33. begin
  34.   Close;
  35. end;
  36.  
  37. procedure TMainForm.BitBtn2Click(Sender: TObject);
  38. begin
  39.   ReportForm := TReportForm.Create(self);
  40.   try
  41.     ReportForm.ShowModal;
  42.   finally
  43.     ReportForm.Free;
  44.   end; { try }
  45. end;
  46.  
  47. end.
  48.